<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SqlDataSourceQueryString.aspx.cs" Inherits="SqlDataSourceQueryString" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RecruitVietnamDbConnectionString %>"
                OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [UserID], [School], [Country], [Faculty], [Graduate], [Major], [Mode], [FromMonthYear], [ToMonthYear] FROM [tblJSEducations] WHERE ([Graduate] = @Graduate)">
                <SelectParameters>
                    <asp:QueryStringParameter DefaultValue="B.S" Name="Graduate" QueryStringField="Graduate"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            &nbsp;</div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="UserID" HeaderText="UserID" SortExpression="UserID" />
                <asp:BoundField DataField="School" HeaderText="School" SortExpression="School" />
                <asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" />
                <asp:BoundField DataField="Faculty" HeaderText="Faculty" SortExpression="Faculty" />
                <asp:BoundField DataField="Graduate" HeaderText="Graduate" SortExpression="Graduate" />
                <asp:BoundField DataField="Major" HeaderText="Major" SortExpression="Major" />
                <asp:BoundField DataField="Mode" HeaderText="Mode" SortExpression="Mode" />
                <asp:BoundField DataField="FromMonthYear" HeaderText="FromMonthYear" SortExpression="FromMonthYear" />
                <asp:BoundField DataField="ToMonthYear" HeaderText="ToMonthYear" SortExpression="ToMonthYear" />
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
